package com.example.educationalsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.educationalsystem.entity.Score;
import com.example.educationalsystem.entity.Vo.ScoreVo;
import com.example.educationalsystem.mapper.IScoreMapper;
import com.example.educationalsystem.mapper.IScoreMapper;
import com.example.educationalsystem.service.IScoreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zpc
 * @since 2022-12-02
 */
@Service
public class ScoreServiceImpl extends ServiceImpl<IScoreMapper, Score> implements IScoreService {
    @Autowired
    private IScoreMapper iScoreMapper;

    @Override
    public List<ScoreVo> getAllScore(){
        return iScoreMapper.getAllScore();
    }


    @Override
    public Page<ScoreVo> getScorePage(Page<ScoreVo> page , Wrapper wrapper)
    {
        return iScoreMapper.getScorePage(page,wrapper);
    }

    @Override
    public List<ScoreVo> getScoreByStudentId(String studentId)
    {
         return iScoreMapper.getScoreByStudentId(studentId);
    }
}
